package com.cy.detectsys.mapper;

import com.cy.detectsys.entity.ProbeResultConnectCloud;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.detectsys.entity.vo.DataCenterInfoVo;
import com.cy.detectsys.entity.vo.ProbeResultConnectCloudVo;
import com.cy.detectsys.model.vo.AssertStatisticVo;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author cyan
* @description 针对表【probe_result_connect_cloud】的数据库操作Mapper
* @createDate 2024-06-12 11:07:24
* @Entity com.cy.detectsys.entity.ProbeResultConnectCloud
*/
public interface ProbeResultConnectCloudMapper extends BaseMapper<ProbeResultConnectCloud> {

    @Select("SELECT distinct(ip) FROM `probe_result_connect_cloud` where data_center_name = #{centerName}")
    List<String> queryIndependenceIp(String centerName);

    List<AssertStatisticVo> groupByCloudServiceByDataCenterName(String centerName);

    List<ProbeResultConnectCloud> getDataCenterIpList(@Param("probeResultConnectCloudVo") ProbeResultConnectCloudVo probeResultConnectCloudVo);


}




